package com.yc.service;

import com.yc.bean.Coupon;
import com.yc.mapper.CouponMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zwei
 * @create 2024-10-22 16:56
 */
@Service
public class CouponBizImpl implements CouponBiz {
    private CouponMapper couponMapper;

    @Autowired
    public CouponBizImpl(CouponMapper couponMapper) {
        this.couponMapper = couponMapper;
    }

    @Override
    public List<Coupon> find() {
        return couponMapper.selectList(null);
    }
}
